<?xml version="1.0"?>
<project name="LEET Enhanced Exploratory Testing" default="cover">

  <property value="LEET\Tedds Tool" name="project" />
  <property value="L33T" name="hudsonProject" />


  <!-- Start by cleaning the build area -->
  <target name="clean" description="remove all build products" >
    <delete dir="TestResults" />
    <delete dir="build" />
  </target>
  <!-- Create a build area -->
  <target name="init" depends="clean">
    <mkdir dir="build"/>
  </target>
  
  <target name="compile" depends="init">
      <exec
      program="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
      commandline='"Tedds Tool.sln"'/>
 </target>


 <target name="test" depends="compile"> 

	<delete dir="TestResults"/>
	<mkdir dir="TestResults"/>
	<exec
		  program="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe"
		  commandline='/testmetadata:"Tedds Tool1.vsmdi" /testlist:All /runconfig:"TestRunConfig.testrunconfig" /resultsfile:TestResults\testResults.trx'/>

 </target>

  <target name="cover" depends="test">
    <exec program="MSBuild">
      <arg value='/property:hudsonProjectRoot="C:\.hudson\jobs\${hudsonProject}\workspace\${project}" "C:\VSCodeCoverage\GenerateCoverage.build"' />
    </exec>

    <exec program="C:\MsBuildNunit\msxsl.exe">
      <arg value="C:\.hudson\jobs\${hudsonProject}\workspace\${project}\TestResults\TestOut\In\ASEBEAST\data.xml" />
      <arg value="C:\VSCodeCoverage\MSTestCoverageToEmma.xsl"/>
      <arg value='-o'/>
      <arg value="C:\.hudson\jobs\${hudsonProject}\workspace\${project}\TestResults\coverage.xml"/>
      <!--C:\.hudson\jobs\L33T\workspace\LEET\Tedds Tool\TestResults\ASEBEAST\In\ASEBEAST-->
    </exec>
  </target>





</project>







